#ifndef CHPARSE_H__
#define CHPARSE_H__

extern int chord_flatsharp; /* -1 for flat, 0 for none, 1 for sharp */
extern int chord_category;  /* C, D, E, F, G, A, B */
extern int chord_arg;           /* digits */

#define TK_EOL          0
#define TK_NOTE         1
#define TK_CHORD        2
#define TK_VARIATION    3
#define TK_INVALID      -1

#define CHORD_MAJ       1
#define CHORD_MIN       2
#define CHORD_DOM       3
#define CHORD_HDIM      4
#define CHORD_DIM       5
#define CHORD_AUG       6
#define CHORD_SUS       7
#define CHORD_LAST      7

extern int chord_tok(const char *p);

#endif  /* CHPARSE_H__ */
